package chances.epg.api.controller.model;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import chances.epg.entity.content.Schedule;

public class ScheduleInfo {
	private Schedule schedule;
	
	public ScheduleInfo(Schedule schedule) {
		this.schedule = schedule;
	}
	
	public String getChannelCode() {
		return this.schedule.getChannelCode();
	}
	
	public String getCode() {
		return this.schedule.getCode();
	}
	
	public String getTitle() {
		return this.schedule.getName();
	}
	
	@JsonSerialize(using = DateTimeSerializer.class)
	public Date getStartTime() {
		return this.schedule.getStartTime();
	}
	
	@JsonSerialize(using = DateTimeSerializer.class)
	public Date getEndTime() {
		return this.schedule.getEndTime();
	}
	
	@JsonSerialize(using = MinuteSerializer.class)
	public Date getShowStartTime() {
		return this.schedule.getStartTime();
	}
	
	public int getIsNow() {
		return this.schedule.isNow();
	}
}
